package com.woniuxy.pxxt.controller;


import com.woniuxy.pxxt.common.result.Result;
import com.woniuxy.pxxt.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 是培训课程的类别(PxxtCategory)表控制层
 *
 * @author makejava
 * @since 2022-03-07 16:33:15
 */
@RestController
@RequestMapping("/category")
@Api(value = "培训课程的类别")
public class CategoryController {
    @Autowired
    private CategoryService categoryService;

    @ApiOperation(value = "查询培训类别")
    @GetMapping("/findCategoryMenu")
    public Result findCategoryMenu(){
        return categoryService.findCategoryMenu();
    }

}

